package com.nuoniu.sibanyun.entity.finance;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 凭证模板表
 * </p>
 *
 * @author 小啊刚
 * @since 2021-12-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("fab_voucher_template")
@ApiModel(value="VVoucherTemplate对象", description="凭证模板表")
public class VVoucherTemplate extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户id")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "模版编码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "模版名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "单据类型")
    @TableField("voucher_type")
    private String voucherType;

    @ApiModelProperty(value = "单据类型名称")
    @TableField("voucher_type_name")
    private String voucherTypeName;

    @ApiModelProperty(value = "凭证类别id")
    @TableField("v_class_id")
    private Integer vClassId;

    @ApiModelProperty(value = "凭证类别名称")
    @TableField("v_class_name")
    private String vClassName;

    @ApiModelProperty(value = "凭证字")
    @TableField("word")
    private String word;

    @ApiModelProperty(value = "描述")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "是否系统：0否1是")
    @TableField("is_sys")
    private Integer isSys;

    @ApiModelProperty(value = "是否默认：0否1是")
    @TableField("is_default")
    private Integer isDefault;

    @ApiModelProperty(value = "状态 0启用1禁用3删除")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "来源单id")
    @TableField("source_voucher_id")
    private Integer sourceVoucherId;

    @ApiModelProperty(value = "来源单据类型")
    @TableField("source_voucher_type")
    private String sourceVoucherType;

    @ApiModelProperty(value = "创建人id")
    @TableField("create_user_id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "模版明细")
    @TableField(exist =  false)
    private List<VVoucherTemplateDetail> voucherTemplateDetailList;
}
